package com.zhoug.map2.dianditu;

import java.util.List;

import androidx.annotation.Keep;

/**
 * @Author: zhoug
 * @Date: 2025-01-03
 * @Description:
 */
@Keep
public class SearchResult {
    /**
     * 总条数
     */
    private int count;
    /**
     * 1（普通POI），2（统计），3（行政区)，4（建议词搜索），5（线路结果）
     */
    private int resultType;
    private String keyWord;
    private List<Poi> pois;
    private List<Prompt> prompt;
    private Status status;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getResultType() {
        return resultType;
    }

    public void setResultType(int resultType) {
        this.resultType = resultType;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public List<Poi> getPois() {
        return pois;
    }

    public void setPois(List<Poi> pois) {
        this.pois = pois;
    }

    public List<Prompt> getPrompt() {
        return prompt;
    }

    public void setPrompt(List<Prompt> prompt) {
        this.prompt = prompt;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public boolean isSuccess(){
        return status!=null && status.getInfocode()==1000;
    }
}
